package com.example.danangtravel;

import java.io.IOException;
import java.io.InputStream;

import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class allMethod {
	private Context context;
	private InputStream bitmap = null;

	public allMethod(Context context) {
		this.context = context;
	}

	public Bitmap getimg(String name) throws IOException {
		bitmap = context.getAssets().open("resort/" + name);
		Bitmap bit = BitmapFactory.decodeStream(bitmap);
		bitmap.close();
		return bit;
	}

}
